<!DOCTYPE html>
<html lang="en">
<head>
  <title>浩然金融中心管理平台</title>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"
        name="viewport">
  <#include "/common/csslib.html">
</head>
<body>
<div class="main-wrapper">
  <!-- start: MAIN CONTAINER -->
  <div class="main-container inner">
    <!-- start: PAGE -->
    <div class="main-content">
      <div class="container">
        <div class="row h-home-path">
          <div class="col-md-12">
            <ol class="breadcrumb">
              <li><i class="fa fa-home"></i>&nbsp;&nbsp;所在位置</li>
              <li>首页</li>
              <li class="active">编辑关于我们信息</li>
            </ol>
          </div>
        </div>
        <div class="row h-main-search">
          <form action="javascript:;" method="post">
            <div class="pull-right h-btn-group">
              <button class="btn btn-info" id="return-btn" onclick="returnIndex()"><i class="fa fa-mail-reply">&nbsp;&nbsp;</i>返回
              </button>
              <@permission btnType="save" btnId="saveBtn" btnValue="保存" op="sys:aboutus:save"
              btnMethod="SystemAboutUsMgr.submitForm()"/>
            </div>
          </form>
        </div>

        <div class="form-horizontal  h-form-warp">
          <div class="h-msg-title h-table-header">
            <strong>关于我们信息</strong>
          </div>
          <form action="/systemAboutUs/saveSystemAboutUs" class="form-horizontal" id="systemAboutUsForm" method="post"
                role="form">
            <input id="operation" name="operation" type="hidden" value="${operation!}"/>
            <input class="form-control" id="id" name="id" type="hidden" value="${systemAboutUs.id!}">
            <div class="form-group">
              <label class="col-sm-2 control-label text-right">发展历程：</label>
              <div class="col-sm-8">
                 <textarea class="col-sm-12" id="corpHistory" name="corpHistory" required="required"
                           rows="70" style="height:240px">${systemAboutUs.corpHistory!}</textarea>
              </div>
              <div class="col-sm-1">
                <span class="required">*</span>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label text-right">合作伙伴：</label>
              <div class="col-sm-8">
											 <textarea class="col-sm-12" id="corpPartners" name="corpPartners" required="required"
                                 rows="70" style="height:240px">${systemAboutUs.corpPartners!}</textarea>
              </div>
              <div class="col-sm-1">
                <span class="required">*</span>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label text-right">企业文化：</label>
              <div class="col-sm-8">
											 <textarea class="col-sm-12" id="corpCulture" name="corpCulture" required="required"
                                 rows="70" style="height:240px">${systemAboutUs.corpCulture!}</textarea>
              </div>
              <div class="col-sm-1">
                <span class="required">*</span>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label text-right">管理团队：</label>
              <div class="col-sm-8">
											 <textarea class="col-sm-12" id="corpTeam" name="corpTeam" required="required"
                                 rows="70" style="height:240px">${systemAboutUs.corpTeam!}</textarea>
              </div>
              <div class="col-sm-1">
                <span class="required">*</span>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label text-right">企业招聘：</label>
              <div class="col-sm-8">
											 <textarea class="col-sm-12" id="corpRecruitment" name="corpRecruitment" required="required"
                                 rows="70" style="height:240px">${systemAboutUs.corpRecruitment!}</textarea>
              </div>
              <div class="col-sm-1">
                <span class="required">*</span>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label text-right">荣誉资质：</label>
              <div class="col-sm-8">
											 <textarea class="col-sm-12" id="corpHonor" name="corpHonor" required="required"
                                 rows="70" style="height:240px">${systemAboutUs.corpHonor!}</textarea>
              </div>
              <div class="col-sm-1">
                <span class="required">*</span>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label text-right">公司简介：</label>
              <div class="col-sm-8">
											 <textarea class="col-sm-12" id="corpInfo" name="corpInfo" required="required"
                                 rows="70" style="height:240px">${systemAboutUs.corpInfo!}</textarea>
              </div>
              <div class="col-sm-1">
                <span class="required">*</span>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
    <!-- end: PAGE -->
  </div>
  <!-- end: MAIN CONTAINER -->
</div>

<#include "/common/jslib.html">
<!-- 弹窗下拉 -->
<script type="text/javascript">
    function returnIndex() {
        window.location.href = "/systemAboutUs/query";
    }

    $(function () {
        // 页面操作类型：add(添加)-edit(编辑)-view(查看)
        var operation = $("#operation").val();
        // 弹出窗体控制
        SystemAboutUsMgr = {
            // 初始化
            init: function () {
                // 查看的时候不显示保存按钮
                if (operation == "view") {
                    Jmts.setFormReadOnly();
                }
                initAmtAndRate();
            },
            // init end

            // 提交数据
            submitForm: function () {
                Jmts.convertAmtAndRate();//反格式化金额和利率，以防保存出错
                Jmts.ajaxSubmit(document.getElementById("systemAboutUsForm"), function (result) {
                    if (result.success) {
                        if (operation == 'add') {
                            SystemAboutUsMgr.returnIndex();
                        } else {
                            Jmts.succTips(result.msg);
                            window.location.reload();
                        }
                    } else {
                        Jmts.revertAmtAndRate();
                        Jmts.warnTips(result.msg);
                    }
                });
                return false;
            },
            // submitForm end
            returnIndex: function () {
                window.location.href = "/systemAboutUs/query";
            }
        };
        // 执行初始化
        SystemAboutUsMgr.init();
        // 前台验证表单
        $("#systemAboutUsForm").validate();
    });
</script>
</body>
</html>
